package com.mingqijia.gassafety.db.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.mingqijia.gassafety.db.entity.BaseEntity;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 通讯模块上报数据
 * </p>
 *
 * @author guoliang.lao
 * @since 2023-10-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_record_dtu_history")
@ApiModel(value="RecordDtuHistory对象", description="通讯模块上报数据")
public class RecordDtuHistory extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "来源主键id")
    @TableField("origin_id")
    private Long originId;

    @ApiModelProperty(value = "控制器上报数据表主键")
    @TableField("record_id")
    private Long recordId;

    @ApiModelProperty(value = "控制器上报数据表主键")
    @TableField("origin_record_id")
    private Long originRecordId;

    @ApiModelProperty(value = "报警器设备主键")
    @TableField("device_id")
    private String deviceId;

    @ApiModelProperty(value = "客户编号")
    @TableField("consumer_id")
    private Integer consumerId;

    @ApiModelProperty(value = "记录类型")
    @TableField("record_type")
    private Integer recordType;

    @ApiModelProperty(value = "小区ID")
    @TableField("cell_id")
    private Integer cellId;

    @ApiModelProperty(value = "通信信号强度")
    @TableField("singal")
    private Integer singal;

    @ApiModelProperty(value = "上报时间")
    @TableField("record_at")
    private Date recordAt;

    @ApiModelProperty(value = "企业编号")
    @TableField("sp_id")
    private String spId;


}
